<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>系统登陆</title>
<jsp:include page="/WEB-INF/pages/common/taglibs.jsp"/>
<link rel="stylesheet" type="text/css" href="${ctx}resources/css/login/login.css">
</head>
<script type="text/javascript">
	function login(){
		var username = $("#username").val();
		var password = $("#password").val();
		var validateCode = $("#validateCode").val();
		$("#loginForm").submit();
	}

	function rest(){

	}
	function changeCode(){
		var d = new Date();
		$("#codes").attr("src","${ctx}main/code.htm?code="+d.getTime());
	}
</script>
<style>
	a:focus {
    outline:none;
    -moz-outline:none;
} 
</style>
<body>
	<div class="warp">
    	<div class="land_name"><img src="${ctx}resources/images/land1_03.png" /></div>
        <div class="land_text">
        	<div class="log_img"><img src="${ctx}resources/images/men.png" alt="log" title="log"/></div>
            <div class="log_content">
            	<form id="loginForm" action="${ctx}j_sys_user_login" method="post">
	            	<table cellpadding="0" cellspacing="0" border="0">
	                	<tr >
	                    	<td width="100" align="right" style="font-family: '微软雅黑'; font-size:18px"></td>
	                        <td colspan="2" style="font-family: '微软雅黑'; font-size:16px;color: red;">${SPRING_SECURITY_LAST_EXCEPTION.message}</td>
	                    </tr>
	                	<tr height="50">
	                    	<td width="100" align="right" style="font-family: '微软雅黑'; font-size:18px">登陆名：</td>
	                        <td colspan="2"><input type="text" id="username" name="username" class="land_input" /></td>
	                    </tr>
	                    <tr height="50">
	                    	<td width="100" align="right" style="font-family: '微软雅黑'; font-size:18px">密码：</td>
	                        <td colspan="2"><input type="password" id="password" class="land_input" name="password"/></td>
	                    </tr>
	                    <tr height="50">
	                    	<td width="100" align="right" style="font-family: '微软雅黑'; font-size:18px">验证码：</td>
	                        <td width="100"><input type="text" id="validateCode" class="land_input2" name="validateCode" maxlength="5"/></td>
	                        <td width="100" align="left"><img id="codes" src="${ctx}main/code.htm"/></td>
	                    </tr>
	                </table>
                </form>
                <table cellpadding="0" cellspacing="0" border="0">
                	<tr height="30" style="font-family: '微软雅黑'; font-size:16px; color:#017193">
                    	<td width="200" align="right" valign="bottom">保存用户名密码？</td>
                        <td width="170" align="center" valign="bottom"><a href="#" onclick="changeCode()" style="font-size:16px; color:#017193">更换验证码</a></td>
                    </tr>
                    <tr height="90">
                    	<td width="200" align="center"><a href="#" onclick="login()"><img src="${ctx}resources/images/land_06.png" /></a></td>
                        <td width="170" align="center"><a href="#" onclick="rest()"><img src="${ctx}resources/images/land_08.png"/></a></td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="log_img1"></div>
    </div>
</body>
<c:if test="${not empty SPRING_SECURITY_LAST_EXCEPTION.message}">
            <c: value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />
</c:if>

</html>